﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the GNU General Public License version 2 (GPLv2).
// See accompanying file License.txt or copy at http://phuse.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Phuse.Mime
{
    using System;

    /// <summary>Processes a message.</summary>
    internal class MessageProcessor : EntityProcessor<Message>, ILineProcessor<Message>
    {
        /// <summary>See <see cref="ILineProcessor{T}.ProcessFirstLine"/>.</summary>
        public int ProcessFirstLine(ArraySegment<byte> segment)
        {
            return this.ProcessEvent(segment);
        }
    }
}
